package org.example.product.service.impl;

import org.example.product.dao.SpuAttributeDao;
import org.example.product.service.SpuAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@Service("spuAttributeService")
public class SpuAttributeServiceImpl implements SpuAttributeService {

    @Autowired
    private SpuAttributeDao spuAttributeDao;

    @Override
    public boolean isSpuAttrByAttrIds(List<Long> ids) {
        return spuAttributeDao.countSpuAttrByAttrIds(ids)>0;
    }
}